<?php
namespace BP\Sys;

use BP\En\EntityMyPK;

require_once("BP/En/Map.php");
class UserLog extends EntityMyPK {
	public function getHisUAC () 
	{
		$uac = new UAC();
		$uac->Readonly();
		return $uac;
	}
	public function getIP () 
	{
		return $this->GetValStringByKey(UserLogAttr::$IP);
	}
	public function setIP ($value) // [String value]
	{
		$this->SetValByKey(UserLogAttr::$IP, $value);
	}
	public function getLogFlag () 
	{
		return $this->GetValStringByKey(UserLogAttr::$LogFlag);
	}
	public function setLogFlag ($value) // [String value]
	{
		$this->SetValByKey(UserLogAttr::$LogFlag, $value);
	}
	public function getFK_Emp () 
	{
		return $this->GetValStringByKey(UserLogAttr::$FK_Emp);
	}
	public function setFK_Emp ($value) // [String value]
	{
		$this->SetValByKey(UserLogAttr::$FK_Emp, $value);
	}
	public function getRDT () 
	{
		return $this->GetValStringByKey(UserLogAttr::$RDT);
	}
	public function setRDT ($value) // [String value]
	{
		$this->SetValByKey(UserLogAttr::$RDT, $value);
	}
	public function getDocs () 
	{
		return $this->GetValStringByKey(UserLogAttr::$Docs);
	}
	public function setDocs ($value) // [String value]
	{
		$this->SetValByKey(UserLogAttr::$Docs, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_UserLogT", "用户日志");
		$map->Java_SetDepositaryOfEntity($Depositary->None);
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->Java_SetEnType($EnType->Sys);
		$map->AddMyPK();
		$map->AddTBString(UserLogAttr::$FK_Emp, NULL, "用户",  TRUE ,  FALSE , 0, 30, 20);
		$map->AddTBString(UserLogAttr::$IP, NULL, "IP",  TRUE ,  FALSE , 0, 200, 20);
		$map->AddTBString(UserLogAttr::$LogFlag, NULL, "标识",  TRUE ,  FALSE , 0, 300, 20);
		$map->AddTBString(UserLogAttr::$Docs, NULL, "说明",  TRUE ,  FALSE , 0, 300, 20);
		$map->AddTBString(UserLogAttr::$RDT, NULL, "记录日期",  TRUE ,  FALSE , 0, 20, 20);
		$map->GetAttrByKey($this->getPK())->setUIVisible( FALSE );
		$map->DTSearchKey = UserLogAttr::$RDT;
		$map->DTSearchWay = DTSearchWay::$ByDate;
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	public function getGetNewEntities () 
	{
		return UserLogs::constructor__();
	}
}
?>
